using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using DukeyCssFetch;
using DukeyCssFetch.api.mou18.com;
using DukeyCssFetch.auth.mou18.com;

// Token: 0x02000034 RID: 52
internal class LoginFrm : Form
{
	// Token: 0x0600020C RID: 524 RVA: 0x00018F68 File Offset: 0x00017168
	public LoginFrm()
	{
		this.dukeyCssFetchAPI_0 = new DukeyCssFetchAPI();
		this.InitializeComponent();
		this.dukeyauth_0 = new dukeyauth();
		this.dukeyauth_0.Url = "http://115.47.57.233:83/auth.asmx";
	}

	// Token: 0x0600020E RID: 526 RVA: 0x00019104 File Offset: 0x00017304
	protected override void Dispose(bool disposing)
	{
		if (disposing && this.sywYoHbXiv != null)
		{
			this.sywYoHbXiv.Dispose();
		}
		base.Dispose(disposing);
	}

	// Token: 0x0600020F RID: 527 RVA: 0x00019124 File Offset: 0x00017324
	private void InitializeComponent()
	{
		ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(LoginFrm));
		this.okButton = new Button();
		this.label1 = new Label();
		this.label2 = new Label();
		this.emailTxt = new TextBox();
		this.groupBox1 = new GroupBox();
		this.txtMachinekey = new TextBox();
		this.linkLabel1 = new LinkLabel();
		this.chkAutoSave = new CheckBox();
		this.label5 = new Label();
		this.linkLabel3 = new LinkLabel();
		this.linkLabel2 = new LinkLabel();
		this.cbServer = new ComboBox();
		this.label4 = new Label();
		this.label3 = new Label();
		this.signkeyTxt = new TextBox();
		this.label6 = new Label();
		this.groupBox1.SuspendLayout();
		base.SuspendLayout();
		this.okButton.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
		this.okButton.DialogResult = DialogResult.Cancel;
		this.okButton.Location = new Point(105, 163);
		this.okButton.Name = "okButton";
		this.okButton.Size = new Size(75, 21);
		this.okButton.TabIndex = 24;
		this.okButton.Text = "登录(&O)";
		this.okButton.Click += new EventHandler(this.okButton_Click);
		this.label1.AutoSize = true;
		this.label1.ForeColor = SystemColors.ControlDarkDark;
		this.label1.Location = new Point(10, 233);
		this.label1.Name = "label1";
		this.label1.Size = new Size(419, 12);
		this.label1.TabIndex = 25;
		this.label1.Text = "声明:本软件受版权法保护,任何个人非法使用、兜售、破解将保留追究的权利!";
		this.label2.AutoSize = true;
		this.label2.Location = new Point(34, 32);
		this.label2.Name = "label2";
		this.label2.Size = new Size(59, 12);
		this.label2.TabIndex = 26;
		this.label2.Text = "账号Email";
		this.emailTxt.Location = new Point(105, 23);
		this.emailTxt.Name = "emailTxt";
		this.emailTxt.Size = new Size(157, 21);
		this.emailTxt.TabIndex = 27;
		this.groupBox1.Controls.Add(this.txtMachinekey);
		this.groupBox1.Controls.Add(this.linkLabel1);
		this.groupBox1.Controls.Add(this.chkAutoSave);
		this.groupBox1.Controls.Add(this.label5);
		this.groupBox1.Controls.Add(this.linkLabel3);
		this.groupBox1.Controls.Add(this.linkLabel2);
		this.groupBox1.Controls.Add(this.cbServer);
		this.groupBox1.Controls.Add(this.label4);
		this.groupBox1.Controls.Add(this.label6);
		this.groupBox1.Controls.Add(this.label3);
		this.groupBox1.Controls.Add(this.label2);
		this.groupBox1.Controls.Add(this.okButton);
		this.groupBox1.Controls.Add(this.signkeyTxt);
		this.groupBox1.Controls.Add(this.emailTxt);
		this.groupBox1.Location = new Point(12, 11);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new Size(411, 216);
		this.groupBox1.TabIndex = 28;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "请登录";
		this.txtMachinekey.Location = new Point(105, 58);
		this.txtMachinekey.Name = "txtMachinekey";
		this.txtMachinekey.Size = new Size(234, 21);
		this.txtMachinekey.TabIndex = 32;
		this.linkLabel1.AutoSize = true;
		this.linkLabel1.Location = new Point(345, 192);
		this.linkLabel1.Name = "linkLabel1";
		this.linkLabel1.Size = new Size(53, 12);
		this.linkLabel1.TabIndex = 29;
		this.linkLabel1.TabStop = true;
		this.linkLabel1.Text = "服务条款";
		this.chkAutoSave.AutoSize = true;
		this.chkAutoSave.Location = new Point(251, 131);
		this.chkAutoSave.Name = "chkAutoSave";
		this.chkAutoSave.Size = new Size(72, 16);
		this.chkAutoSave.TabIndex = 31;
		this.chkAutoSave.Text = "记住设置";
		this.chkAutoSave.UseVisualStyleBackColor = true;
		this.label5.AutoSize = true;
		this.label5.ForeColor = SystemColors.ControlDarkDark;
		this.label5.Location = new Point(52, 192);
		this.label5.Name = "label5";
		this.label5.Size = new Size(287, 12);
		this.label5.TabIndex = 25;
		this.label5.Text = "客服QQ:1902976602 免费电话400-8201355  都客科技";
		this.linkLabel3.AutoSize = true;
		this.linkLabel3.Location = new Point(288, 94);
		this.linkLabel3.Name = "linkLabel3";
		this.linkLabel3.Size = new Size(59, 12);
		this.linkLabel3.TabIndex = 29;
		this.linkLabel3.TabStop = true;
		this.linkLabel3.Text = "忘记密码?";
		this.linkLabel2.AutoSize = true;
		this.linkLabel2.Location = new Point(200, 167);
		this.linkLabel2.Name = "linkLabel2";
		this.linkLabel2.Size = new Size(53, 12);
		this.linkLabel2.TabIndex = 29;
		this.linkLabel2.TabStop = true;
		this.linkLabel2.Text = "立即注册";
		this.cbServer.DropDownStyle = ComboBoxStyle.DropDownList;
		this.cbServer.FormattingEnabled = true;
		this.cbServer.Items.AddRange(new object[]
		{
			"服务器一",
			"服务器二",
			"服务器三"
		});
		this.cbServer.Location = new Point(105, 127);
		this.cbServer.Name = "cbServer";
		this.cbServer.Size = new Size(121, 20);
		this.cbServer.TabIndex = 30;
		this.label4.AutoSize = true;
		this.label4.Location = new Point(28, 135);
		this.label4.Name = "label4";
		this.label4.Size = new Size(65, 12);
		this.label4.TabIndex = 29;
		this.label4.Text = "选择服务器";
		this.label3.AutoSize = true;
		this.label3.Location = new Point(52, 94);
		this.label3.Name = "label3";
		this.label3.Size = new Size(41, 12);
		this.label3.TabIndex = 28;
		this.label3.Text = "授权码";
		this.signkeyTxt.Location = new Point(105, 91);
		this.signkeyTxt.Name = "signkeyTxt";
		this.signkeyTxt.Size = new Size(157, 21);
		this.signkeyTxt.TabIndex = 27;
		this.label6.AutoSize = true;
		this.label6.Location = new Point(52, 61);
		this.label6.Name = "label6";
		this.label6.Size = new Size(41, 12);
		this.label6.TabIndex = 28;
		this.label6.Text = "机器码";
		base.AcceptButton = this.okButton;
		base.AutoScaleDimensions = new SizeF(6f, 12f);
		base.AutoScaleMode = AutoScaleMode.Font;
		base.ClientSize = new Size(434, 254);
		base.Controls.Add(this.label1);
		base.Controls.Add(this.groupBox1);
		base.FormBorderStyle = FormBorderStyle.FixedSingle;
		base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "LoginFrm";
		base.Padding = new Padding(9, 8, 9, 8);
		base.ShowInTaskbar = false;
		base.StartPosition = FormStartPosition.CenterScreen;
		this.Text = "登录窗口 - 都客仿站高手";
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		base.ResumeLayout(false);
		base.PerformLayout();
	}

	// Token: 0x0600020D RID: 525 RVA: 0x00018FA4 File Offset: 0x000171A4
	private void okButton_Click(object sender, EventArgs e)
	{
		string text = this.emailTxt.Text.Trim();
		string regcode = this.signkeyTxt.Text.Trim();
		bool arg_2D_0 = this.chkAutoSave.Checked;
		string sid = "gdfsafg";
		string text2 = "";
		this.okButton.Text = "正在登录...";
		this.okButton.Enabled = false;
		string sHA1MachineCode = WMICardGrab.GetSHA1MachineCode();
		this.txtMachinekey.Text = sHA1MachineCode;
		string a = this.dukeyauth_0.AuthUser(text, sHA1MachineCode, regcode, sid, ref text2, 280);
		if (a == "expire")
		{
			base.Hide();
			if (DialogResult.Yes == MessageBox.Show("你的产品已超过使用期,现在去续费吗", "温馨提示", MessageBoxButtons.YesNo))
			{
				Process.Start(string.Concat(new string[]
				{
					"http://www.mou18.com/xufee_",
					text,
					"^",
					sHA1MachineCode,
					".html"
				}));
			}
			Environment.Exit(0);
			return;
		}
		if (a == "nouser")
		{
			MessageBox.Show("没有此账号!");
			this.okButton.Enabled = true;
			this.okButton.Text = "登录";
			return;
		}
		FrameMain frameMain = new FrameMain();
		frameMain.Show();
		this.okButton.Enabled = true;
		this.okButton.Text = "登录";
		base.Hide();
	}

	// Token: 0x04000226 RID: 550
	private ComboBox cbServer;

	// Token: 0x04000223 RID: 547
	private CheckBox chkAutoSave;

	// Token: 0x0400021A RID: 538
	private dukeyauth dukeyauth_0;

	// Token: 0x04000219 RID: 537
	private DukeyCssFetchAPI dukeyCssFetchAPI_0;

	// Token: 0x0400021F RID: 543
	private TextBox emailTxt;

	// Token: 0x04000220 RID: 544
	private GroupBox groupBox1;

	// Token: 0x0400021D RID: 541
	private Label label1;

	// Token: 0x0400021E RID: 542
	private Label label2;

	// Token: 0x04000221 RID: 545
	private Label label3;

	// Token: 0x04000227 RID: 551
	private Label label4;

	// Token: 0x04000229 RID: 553
	private Label label5;

	// Token: 0x0400022B RID: 555
	private Label label6;

	// Token: 0x04000228 RID: 552
	private LinkLabel linkLabel1;

	// Token: 0x04000225 RID: 549
	private LinkLabel linkLabel2;

	// Token: 0x04000224 RID: 548
	private LinkLabel linkLabel3;

	// Token: 0x0400021C RID: 540
	private Button okButton;

	// Token: 0x04000222 RID: 546
	private TextBox signkeyTxt;

	// Token: 0x0400021B RID: 539
	private IContainer sywYoHbXiv;

	// Token: 0x0400022A RID: 554
	private TextBox txtMachinekey;
}
